package club.easin.pow.dto;

import club.easin.common.BaseDto;
import club.easin.config.db.MyStringHandleType;
import club.easin.config.db.Mystring;
import tk.mybatis.mapper.annotation.ColumnType;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Table(name = "pw_user")
public class PwUser extends BaseDto implements Serializable {

    @Id
    private String userid;

    @ColumnType(typeHandler = MyStringHandleType.class)
    private Mystring mobile;

    private String username;

    private String realname;
    @ColumnType(typeHandler = MyStringHandleType.class)
    private Mystring idcode;
    @ColumnType(typeHandler = MyStringHandleType.class)
    private Mystring email;

    private String password;

    private String vaildflag;

    private String adduser;

    private Date createtime;

    private Date updatetime;

    private String operate;

    private String sysflag;
    /**
     * @return userid
     */
    public String getUserid() {
        return userid;
    }

    /**
     * @param userid
     */
    public void setUserid(String userid) {
        this.userid = userid;
    }

    /**
     * @return mobile
     */
    public Mystring getMobile() {
        return mobile;
    }

    /**
     * @param mobile
     */
    public void setMobile(Mystring mobile) {
        this.mobile = mobile == null ? null : mobile;
    }

    /**
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username
     */
    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    /**
     * @return realname
     */
    public String getRealname() {
        return realname;
    }

    /**
     * @param realname
     */
    public void setRealname(String realname) {
        this.realname = realname == null ? null : realname.trim();
    }

    /**
     * @return idcode
     */
    public Mystring getIdcode() {
        return idcode;
    }

    /**
     * @param idcode
     */
    public void setIdcode(Mystring idcode) {
        this.idcode = idcode == null ? null : idcode;
    }

    /**
     * @return email
     */
    public Mystring getEmail() {
        return email;
    }

    /**
     * @param email
     */
    public void setEmail(Mystring email) {
        this.email = email == null ? null : email;
    }

    /**
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password
     */
    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    /**
     * @return vaildflag
     */
    public String getVaildflag() {
        return vaildflag;
    }

    /**
     * @param vaildflag
     */
    public void setVaildflag(String vaildflag) {
        this.vaildflag = vaildflag == null ? null : vaildflag.trim();
    }

    /**
     * @return adduser
     */
    public String getAdduser() {
        return adduser;
    }

    /**
     * @param adduser
     */
    public void setAdduser(String adduser) {
        this.adduser = adduser == null ? null : adduser.trim();
    }

    /**
     * @return createtime
     */
   public Date getCreatetime() {
        return createtime;
    }

    /**
     * @param createtime
     */
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

   /**
     * @return updatetime
     */
    public Date getUpdatetime() {
        return updatetime;
    }

    /**
     * @param updatetime
     */
    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getOperate() {
        return operate;
    }

    public void setOperate(String operate) {
        this.operate = operate;
    }

    public String getSysflag() {
        return sysflag;
    }

    public void setSysflag(String sysflag) {
        this.sysflag = sysflag;
    }
}